package com.irun.pm.ui;

import android.os.Bundle;
import android.widget.TextView;

import com.irun.pm.R;
import com.irun.pm.utils.StringUtil;
/***
 * @author wushengxiong
 * @date 2012-5-26
 * @email a610959773@gmail.com
 * @desc 
 */
public class ViolationDetailsActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.violation_details);
		
		
		initAllViews();
	}
	
	private void initAllViews(){
		
		Bundle bundle = getIntent().getExtras();
		
		TextView name = (TextView)findViewById(R.id.vd_tv_name);
		TextView cardNumber = (TextView)findViewById(R.id.vd_tv_cardNumber);
		TextView date = (TextView)findViewById(R.id.vd_tv_date);
		TextView address = (TextView)findViewById(R.id.vd_tv_address);
		TextView result = (TextView)findViewById(R.id.vd_tv_result);
		TextView dealPeople = (TextView)findViewById(R.id.vd_tv_dealPeople);
		TextView note = (TextView)findViewById(R.id.vd_tv_note);
		
		
		name.setText(StringUtil.getValue(bundle.getString("name")));
		cardNumber.setText(StringUtil.getValue(bundle.getString("cardNumber")));
		date.setText(StringUtil.getValue(bundle.getString("date")));
		address.setText(StringUtil.getValue(bundle.getString("address")));
		result.setText(StringUtil.getValue(bundle.getString("result")));
		dealPeople.setText(StringUtil.getValue(bundle.getString("dealPeople")));
		note.setText(StringUtil.getValue(bundle.getString("note")));
	}
	
}
